{include file="layout/header" /}
<div id="page-wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">修改区域</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <form action="{:url('area/edit')}" method="post">
        <div class="form-group">
            <label>选择上级</label>
            <select class="form-control" name="pid">
                <option value="">无</option>
                {volist name="area_list" id="vo"}
                <option {$area.pid==$vo.id ? 'selected' : ''} value="{$vo.id}">{$vo.name}</option>
                {/volist}
            </select>
        </div>
        <div class="form-group">
            <label>区域名称</label>
            <input class="form-control" value="{$area.name}" name="name">
        </div>
        <input type="hidden" name="id" value="{$area.id}">
        <input type="submit" value="提交"/>
    </form>
</div>
{include file="layout/footer" /}